<script setup></script>

<template>
  <ConfirmDialog>
    <template #container="{ acceptCallback, rejectCallback, message }">
      <div class="d-flex flex-column pa-6" style="min-width: 300px">
        <h2 class="d-flex align-center"><i class="pi pi-question-circle mr-2" style="font-size: 20px"></i> 提示</h2>
        <h3 class="my-5">{{ message.message }}</h3>
        <div class="d-flex justify-end ga-2 mt-1">
          <slot :action="acceptCallback" :cancel="rejectCallback"></slot>
          <Button label="取消" outlined size="small" @click="rejectCallback"></Button>
        </div>
      </div>
    </template>
  </ConfirmDialog>
</template>

<style lang="css" scoped></style>
